describe('Testing User', function() {
    var myUser;


    beforeEach(module('MyApp'));

    it ('Is testing user default values', inject(function(user){
        myUser = user;
        expect(myUser.name).toEqual('');
        expect(myUser.email).toEqual('');
    }));

    it ('Is testing user default values', inject(function(user){
        myUser = user;

        expect(myUser.validate()).toEqual(false);

        myUser.email = '1234567890';
        myUser.password = '12345';
        expect(myUser.validate()).toEqual(true);
    }));
});